package cn.getech.data.metadata.mapper;

import cn.getech.data.metadata.entity.meta.CollectionTask;
import cn.getech.data.metadata.model.res.CollectionTaskListRes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface CollectionTask2Mapper extends BaseMapper<CollectionTask> {

    List<CollectionTaskListRes> listBy(Map<String,Object> params);

    @MapKey("crearPer")
    List<Map<String,Object>> userListBy(@Param("tenantId") Integer tenantId);

    Integer listByCount(Map<String,Object> params);

    List<Integer> selectCategoryIds(Integer id);

    List<String> selectCategoryNames(List<Integer> list);

}